/**
 * Copyright 2008-2009. Chongqing Communications Industry Services Co.,Ltd Information Technology Branch. All rights
 * reserved. <a>http://www.cqcis.com</a>
 */
package com.cqcis.uip.base.framework.core;

import javax.servlet.http.HttpServlet;

import com.cqcis.uip.base.framework.core.impl.ServletContainerServer.URLRegister;


/**
 * @author huangmy
 * @date   2009-3-26
 */
public interface ServletContainer {
	/**
	 * 注册context
	 * 
	 * @param contextPath
	 * @param url
	 * @param servlet
	 * @return
	 * @throws Exception
	 */
	public URLRegister registerURL(String contextPath, String url, HttpServlet servlet) throws Exception;
	
	/**
	 * 注册
	 * 
	 * @param contextPath
	 * @param url
	 * @param servlet
	 * @param serviceInterface
	 * @return
	 * @throws Exception
	 */
	public URLRegister registerURL(String contextPath, String url, 
	         HttpServlet servlet, Class<?> serviceInterface) throws Exception;
	
	/**
	 * 注册WAR
	 * 
	 * @param contextPath
	 * @param war
	 * @return
	 * @throws Exception
	 */
	public URLRegister registerWAR(String contextPath, String war) throws Exception;
}
